<%--
  Created by IntelliJ IDEA.
  User: QUANYUNA
  Date: 2021/5/21
  Time: 14:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%
    //获取项目的根路径
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <title>添加失物招领</title>
<%--    <link rel="stylesheet" href="<%=basePath%>/gq/jsp/css/lostThings.css">--%>
<%--    <link rel="stylesheet" href="<%=basePath%>/gq/jsp/css/donateBook.css">--%>
    <style type="text/css">
        * {
            margin: auto;
            padding: 0px;
        }

        tr{
            font-size: 20px;
        }

        input{
            font-size: 20px;
        }

        select{
            width: 244px;
            font-size: 20px;
        }

        input[name='time']{
            width: 244px;
        }

        #book_table tr{
            width: 80px;
            height: 10px;
        }

        h2{
            color: red;
        }

        input[name='button_two_td']{
            position: absolute;
            left: -120px;
            top: 32px;
        }





        /*
        新增盒子里的css样式
        */
        #insert_div{
            /*display: none;*/

            width: 800px;
            height: 750px;
            margin: auto;
            padding: 0px;
            /*border: blue 2px solid;*/
        }

        #insert_table{
            position: relative;
            left: -10px;
            top: 70px;
        }


        #insert_table tr td{
            position: relative;
            left:40px;
            font-size: 30px;
            padding-top: 30px;
        }

        input[name='submit_td_two'],input[name='button_two_td'],input[name='button_exit']{
            font-size: 20px;
        }

        input[name='button_two_td']{
            position: relative;
            left: -350px;
        }

        input[name='button_exit']{
            position: relative;
            top: -60px;
            left: 400px;
        }





        #update_table td{
            padding: 20px;
            /*text-align: center;*/
        }



        #insert_div{
            text-align: center;
        }
        form{
            /*margin-top: 50px;*/
        }
form p>span{
    display: inline-block;
    width: 50px;
}



    </style>
</head>
<body>
<div id="insert_div">
    <form action="<%=basePath%>/BookServlet?tp=insert" method="post">

            <h1 style="color: red">新增遗失物品</h1><br>
          <p> <span>物品:</span><input type="text"required  placeholder="请输入遗失的物品名"  name="name"></p><br>
          <p> <span> 时间:</span><input type="date"required placeholder="请输入时间" name="time" style="width: 215px"></p><br>
          <p>  <span> 状态:</span><input type="text" readonly="readonly" value="未领走" name="state"></p><br>
          <p>   <input type="submit"name="submit_td_two" value="确定">
             <input type="reset"  value="清空">
          <button  style="width: 50px;height: 30px"><a href="<%=basePath%>/gq/jsp/lostThings.jsp" style="">退出</a></button></p><br>

    </form>
</div>

</body>

</html>
